﻿@model IEnumerable<DynamicMenuDto>

<div class="side-nav">
	<ul>
    @foreach (var item in Model)
    {
        <li class="@Html.ActiveMenuItemClassForUrl(item.Url)"><a href="@Url.Content(item.Url)">@item.Name<span>&nbsp;</span></a>
        @if (item.Url.Contains("news/blogs"))
        {
            @Html.Partial("_BlogsPanel")
            @*<ul class="subnav">
            @foreach (var subitem in item.Children)
            { 
                <li class="@Html.ActiveMenuItemClassForUrl(subitem.Url)"><a href="@Url.Content(subitem.Url)">@subitem.Name</a></li>
            }
            </ul>*@
        }
        </li>
    }
    </ul>
    @*<h5><a href="#">@Resources.EnetaMvc.Tags</a></h5>*@
</div>